package com.lp.service;

import com.lp.po.Comment;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-02-19 14:07
 */
public interface CommentService {
    //管理端查询总数
    int getCommentCount() throws Exception;
    //查询该用户的评价总数
    int getCountWithStudent(Integer studentid) throws Exception;
    //管理端的评价查询
    List<Comment> findComment(Integer toPageNo);
    //用户端的评价查询
    List<Comment> findCommentWithStudent(Integer studentid,Integer toPageNo);
    Comment findById(Integer id);
    void updataComment(String zhanshi,Integer id);
    void delectcomment(Integer id);


    /*小程序端*/
    void insetContent(String content, Integer studentid, Integer sceneryid, String nowtime,Integer grade);
    List<Comment> wxSelectComment(Integer sceneryid);

}
